<?php
/**
 * Model Traits Permssion
 * User: zng
 * Date: 2019/11/15
 * Time: 15:08
 */
namespace app\admin\traits\model;

Trait Permission {

    public function permissionCategory()
    {
        return $this->hasOne('PermissionCategory', 'id', 'category_id')->bind([
            'categoryname' => 'name'
        ]);
    }

}